package br.com.napoleao.controlfin.core.persistence.factory;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class EntityManagerProvider {

	private static EntityManagerFactory emf = null;
	
	private EntityManagerProvider(){
		
	}
	
	public static EntityManagerFactory getEntityManagerFactory(){
		
		if(emf == null){
			emf = Persistence.createEntityManagerFactory("ControlFinPU");
		}		
		return emf;
	}
}
